#include "cevent.h"


const int CEvent::Begin_Idle=				0;			//then TryPull and set the Begin_Busy time
const int CEvent::Begin_Busy=			1;			//then set the Machine_Setup_Begin time
const int CEvent::Machine_Setup_Begin=	2;			//then calc the Set-up time and set the Machine_Setup_Over time
const int CEvent::Machine_Setup_Over=		3;			//then set the Machine_Process_Begin time
const int CEvent::Machine_Process_Begin=	4;			//then Calc the Processing time and set the Machine_Process_Over time
const int CEvent::Machine_Process_Over=	5;			//then set the Machine_Block_Begin time
const int CEvent::Machine_Block_Begin=	6;			//then TryPush and set the Machine_Block_Over time
const int CEvent::Machine_Block_Over=		7;	


CEvent::CEvent(long id, int tp, double t)
{
	element_id=id;
	event_type=tp;
	event_time=t;
}

CEvent::~CEvent()
{
}

long CEvent::getID()
{
	return element_id;
}
int CEvent::getType()
{
	return event_type;
}
double CEvent::getTime()
{
	return event_time;
}
